<?foreach ($questions['instructions']['content'] as $content){
                                if($content['type']== 'D'){?>
                                     <h5> <strong><? echo $content['description']?></strong></h5>
                                <?}
                            }?>
							<?
                        $number = 1;?>
                        <div class="input-group input-group-sm">
                            <?
                            foreach ($questions as $item) {
                                if ($item['type'] === 'D') {
                                    ?>
                                    <? echo $number . '. ' . $item['question']; ?>
                                    <? foreach ($item['choices'] as $choice) { ?>
                                    <input onkeydown="return alphaValidator(event);" type="text" class="form-control"  name='<? echo $secureid= substr(md5(rand()), 0, 7).$choice['answer_id']?>'/><br><br>
                                    <?}
                                    $number+=1;
                                    $num_of_questions += 1;
                                }
                            }
                            ?>